<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <include file='__VIEW__/Common/header' />
	</head>
	<body>
		<form action="" method="post">
			<div class="alert alert-success">编辑分类</div>
			<div class="form-group">
				<label for="exampleInputEmail1">分类名称</label>
				<input value="{$cData.cname}" id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称" required="" name="cname">
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">所属分类</label>
				<select name="pid" class="form-control">
					<option value="0">顶级分类</option>
					<foreach from="$cateData" key="$k" value="$v">
						<option value="{$v.cid}" <if value="$v['cid']==$cData['pid']">selected="selected"</if>>{$v._name}</option>
					</foreach>
				</select>
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">所属类型</label>
				<select name="tid" class="form-control">
					<option value="">请选择</option>
					<foreach from="$tData" key="$k" value="$v">
						<option value="{$v.tid}" <if value="$v['tid']==$cData['vshop_type_tid']">selected="selected"</if>>{$v.tname}</option>
					</foreach>
				</select>
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">分类排序</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序" required="" name="csort" value="{$cData.csort}">
			</div>
			<input type="hidden" name="cid" value="{$cData.cid}" />
			<button class="btn btn-primary btn-block" type="submit">修改分类</button>
		</form>
	</body>
</html>
